﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace Api.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class UserMagerController : ControllerBase, IUserMagerBll
    {
         public UserMagerController(IUserMagerBll bll)
        {
            Bll = bll;
        }

        public IUserMagerBll Bll { get; }

        [HttpGet]
        public UserMager Loing(string name, string pwd)
        {
            return Bll.Loing(name, pwd);
        }
    }
}
